package com.yanqu.road.entity.activity.cat;

public class EleAttr {

    private int type;

    private int val; //属性值

    private int id;  //icon或者npc

    private int color;  //颜色

    public EleAttr() {
    }

    public EleAttr(int type, int val) {
//        if(type == 7){
//            System.out.println("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB");
//        }
        this.type = type;
        this.val = val;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        if(type == 7 && (id == 501 || id == 502)){
            //不会执行，有执行就是bug
            System.out.println("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
        }
        this.type = type;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public EleAttr clone(){
        EleAttr copy = new EleAttr(this.type, this.val);
        copy.setId(this.id);
        copy.setColor(this.color);
        return copy;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }
}
